<html>
<head>
<link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="Content-Language" content="th">
<meta http-equiv="Content-Type" content="text/html; charset= utf-8 " />
<title>Video Player | DT Player Online Video Player</title>
<style type="text/css">
<!--
#outerdiv
{
    width:1120px;
    height:200px;
    overflow:hidden;
    position:relative;
}
#inneriframe
{
    position:absolute;
    top:-130px;
    left:-30px;
    width:1150px;
    height:591px;
}

-->
</style>
<!--[[script.js]]-->
</head>


<body>

    <script type="text/javascript" src="image.js"></script>
    <script type="text/javascript" src="https://player-series.googlecode.com/git/jwplayer.js"></script>
	<script type="text/javascript">jwplayer.key="BIJPWAfgYuEqoUUP1jbXl1O4+2d0NM3lFJSdrQ==";</script>
	<div id="myElement"></div>

    <div id='box'>
    		<input type="text" name="enter" class="enter" value="" id="lolz"/>
    		<input type="button" value="ตกลง" OnClick="kk()"/>
    </div> 

    <script type="text/javascript">
    var lol = document.getElementById('lolz');

     function kk() {

     	var rand_image = image_link[Math.floor(Math.random() * image_link.length)];

   		jwplayer("myElement").setup({
     	  	file: lol.value,
     	  	type: 'mp4',
     	    image: rand_image,
      	    title: 'K-Drama TH',
      	    width: '720',
      	    height: '480'
   		});
	}
    </script>

 
</body>
</html>
